#pragma once

#include <vector>
using std::vector;

#include "Letter.h"



class CBitmapFont
{
public:
	/* SINGLETON */
	static CBitmapFont* GetInstance( void );
	CBitmapFont(void);
	~CBitmapFont(void);

	bool LoadFont( const char* szXmlFile, const char* szImageFile );
	void Print( const char* szText, int nX, int nY, float fScale = 1.0f );

private:
	vector< CLetter >		m_Letters;
	int						m_nCurrLeft;
	int						m_nFontHeight;
	int						m_nImageID;
	float					m_fScale;
};

